package com.xinshujia.response;

import com.xinshujia.utils.Constants;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-07-11 10:53       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 */
public enum RespCode {
 // 操作成功
 SUCCESS(20000, Constants.RESPONSE_SUCCESS),
 FAIL(50000, Constants.RESPONSE_FAIL);

 private final Integer code;
 private final String message;

 RespCode(Integer code, String message) {
  this.code = code;
  this.message = message;
 }

 public Integer getCode() {
  return code;
 }

 public String getMessage() {
  return message;
 }
}
